import { Map } from 'immutable'

const defaultState = Map({
    user: {},
    userDoctor:{}
})
const reducer = (state = defaultState, action) => {
    switch(action.type) {
        case 'loadDataUser':
            return state.set('user', action.user)
        case 'loadDataUserDoctor':
            return state.set('userDoctor',action.userDoctor)
        default:
            return state
    }
}
export default reducer